package com.ziytek.web.citizen.event;

import com.ziytek.web.citizen.model.data.RealData;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/***
 * 电池实时数据事件
 * @author fenghx
 * */
@Getter
@Setter
@AllArgsConstructor
@ToString
public class RealDataEvent {
    private Long timestamp;
    private RealData realData;

    public RealDataEvent(RealData rd) {
        this.realData = rd;
        this.timestamp = System.currentTimeMillis();
    }
}
